//
//  ArticleListCellReactor.swift
//  WanAndroidLearn
//
//  Created by TRS-Mobile on 2023/11/3.
//

import Foundation
import ReactorKit

class ArticleListCellReactor: Reactor {
    
    typealias Action = Never
    
    var initialState: State
    struct State {
        var title: String
        var author: String
    }
    
    let article: Article
    init(article: Article) {
        self.article = article
        self.initialState = State(title: article.title, author: (article.author ?? article.shareUser) ?? "")
        _ = self.state
    }
}
